//
//  CommTools.h
//  DaoZiJinFu
//
//  Created by woker on 16/6/24.
//  Copyright © 2016年 iwoker. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface CommTools : NSObject

+ (UIViewController *)getCurrentViewController:(id)view;
+ (CGSize)getTextSize:(NSString *)text WithWidth:(CGFloat)width;
+ (UIImage *)image:(UIImage*)image byScalingToSize:(CGSize)targetSize;
+ (BOOL)isPureNumandCharacters:(NSString *)string;
+ (void)setUserInfo:(id)responseObject;
+ (void)resetRequestWithURL:(NSString *)url andParams:(NSDictionary *)params httpMethod:(NSString *)method complection:(void(^)(id result))block;
+ (void)checkIndex:(UIViewController *)vc result:(void(^)(id result))block;

+ (void)removeAllSet;

+ (void)getRnsAndSid:(void(^)(id result))block;

@end
